# @Author: dpf
# @Date  : 2024/12/04/09:37

class Book:
    id = None
    bookName = None
    author = None
    sex = None
    price = None
    bookTypeId = None
    bookDesc = None

    def __init__(self, bookName, author, bookTypeId):
        self.bookName = bookName
        self.author = author
        self.bookTypeId = bookTypeId

    @staticmethod
    def my_constructor(id, bookName, author, sex, price, bookTypeId, bookDesc):
        obj = Book(bookName, author, bookTypeId)
        obj.id = id
        obj.sex = sex
        obj.price = price
        obj.bookDesc = bookDesc
        return obj
